Permalink
Browse files

Merge pull request #511 from imalberto/fix-examples2

More search-perf fixes
  • Loading branch information...
2 parents 340ae88 + 3275f8c commit 91a422a76a1e1b53fc4b17974e7026643a2319a4 @imalberto imalberto committed Sep 14, 2012
@@ -10,12 +10,15 @@ YUI.add('myMojit', function(Y, NAME) {
index: function(ac) {
- ac.models.message.get(function(data){
+ ac.models.get('message').get(function(data) {
ac.done(data);
});
}
};
-});
+}, '0.0.1', { requires: [
+ 'mojito-models-addon',
+ 'myMojitModel'
+]});
@@ -10,12 +10,15 @@ YUI.add('myMojit', function(Y, NAME) {
index: function(ac) {
- ac.models.message.get(function(data){
+ ac.models.get('message').get(function(data) {
ac.done(data);
});
}
};
-});
+}, '0.0.1', { requires: [
+ 'mojito-models-addon',
+ 'myMojitModel'
+]});
@@ -10,15 +10,17 @@ YUI.add('myMojit', function(Y, NAME) {
index: function(ac) {
- ac.models.message.get(function(data){
-
+ ac.models.get('message').get(function(data) {
data.title = ac.intl.lang('TITLE');
-
ac.done(data);
});
}
};
-}, '0.0.1', {requires: ['mojito-intl-addon']});
+}, '0.0.1', {requires: [
+ 'mojito-intl-addon',
+ 'mojito-models-addon',
+ 'myMojitModel'
+]});

0 comments on commit 91a422a

Please sign in to comment.