Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

addItem Refactor #37

Merged
merged 4 commits into from
Jun 3, 2014
Merged

addItem Refactor #37

merged 4 commits into from
Jun 3, 2014

Conversation

usirin
Copy link
Member

@usirin usirin commented Jun 3, 2014

  • Changes KDListViewController @itemOrdered to be a reflection of its listView's items.
  • Removes unnecessary logic from controller for items to be needed.
  • Fixes the behavior of the KDListView's item addition.
    • It works for both boxed and !boxed.
    • It works for both lastToFirst and !lastToFirst

@itemsOrdered = [] unless @itemsOrdered
# CtF: this must be fixed: duplicate itemsOrdered and KDListView.items
# Object.defineProperty this, "itemsOrdered", get : => @getListView().items
Object.defineProperty this, "itemsOrdered", get : => @getListView().items
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put a deprecation warning here, so that devs can remove the itemsOrdered use from their implementations, which would read: KDListViewController::itemsOrdered is deprecated.

sinan added a commit that referenced this pull request Jun 3, 2014
@sinan sinan merged commit 011f41e into master.listview Jun 3, 2014
@sinan sinan deleted the master.listview.refactor branch June 3, 2014 22:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants