Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error in fixUpContinuousNodeArray when using jquery.tmpl
The `shift` method does not exist on jQuery objects. However, the `splice` method does exist. Previously, `splice(0,1)` was used as of knockout#144 but was replaced with `shift()` in [this commit](knockout@7c99a94#diff-2b4ca49d4bb0a774c4d4c1672d7aa781R235). A workaround can be found [on StackOverflow:](http://stackoverflow.com/questions/6515544/how-to-pop-or-shift-from-jquery-set) ``` (function( $ ) { $.fn.pop = function() { var top = this.get(-1); this.splice(this.length-1,1); return top; }; $.fn.shift = function() { var bottom = this.get(0); this.splice(0,1); return bottom; }; })( jQuery ); ```
- Loading branch information