Dean Sofer
Dean Sofer
Pull requests accepted, the data DOES get stored to the session to some degree.
Yeah I'm stumped.
This should be the initSelection and renderFunction or whatever they are in the original select2 widget. You should not need this.
@qraynaud you shouldn't be loading jquery in the wrong order to begin with
Loading jquery first causes AngularJS to use jquery instead of jqlite. Your entire theory defeats the purpose of loading jquery at all. On Aug 3, 2014 10:28 AM, "Quentin Raynaud"...
That should not happen unless you or they are doing something wrong considering jquery is a superset of jqlite. On Aug 3, 2014 12:23 PM, "Quentin Raynaud" [email protected] wrote: >...
Open an issue on the AngularJS lib On Aug 3, 2014 12:30 PM, "Quentin Raynaud" [email protected] wrote: > As I just said before, this is not true. Because jQuery is...
This is wrong. Instead, wrap this: https://github.com/angular-ui/ui-select2/blob/380dc0de0ab18fcfa5970f5cfff5bc50d7287576/src/select2.js#L145-L156 in this: ``` js $scope.$watch(attrs.uiSelect, function(newOptions, oldOptions){ ... (highlighted code goes here, using newOptions instead of evaluating) ... }, true); ```
No, just do: ``` if (newOptions) { // assume truthy values are always objects ... } ``` If it's ever a truthy non-object, then someone is implementing it incorrectly.
My only concern with this is if someone messes with the data option then the options will be changed too.