Переглянути джерело

Rename osmAuth -> wpApiAuth

Ryan McCue 12 роки тому
батько
коміт
d093be5599
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      js/app.js
  2. 1 1
      js/auth.js

+ 1 - 1
js/app.js

@@ -254,7 +254,7 @@
 
    $.ajax( { url: config.api_url + "/" } ).done( function( response ) {
 
-      var auth = osmAuth({
+      var auth = wpApiAuth({
         oauth_consumer_key: config.client_key,
         oauth_secret: config.client_secret,
         url: config.api_url,

+ 1 - 1
js/auth.js

@@ -1,4 +1,4 @@
-(function(e){if("function"==typeof bootstrap)bootstrap("osmauth",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeOsmAuth=e}else"undefined"!=typeof window?window.osmAuth=e():global.osmAuth=e()})(function(){var define,ses,bootstrap,module,exports;
+(function(e){if("function"==typeof bootstrap)bootstrap("wpapiauth",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeWpApiAuth=e}else"undefined"!=typeof window?window.wpApiAuth=e():global.wpApiAuth=e()})(function(){var define,ses,bootstrap,module,exports;
 return (function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i})({1:[function(require,module,exports){
 'use strict';